<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>首页 - easyui</title>
		<%@ include file="/common/include/title.jsp"%>
		<script type="text/javascript">
			$(function() {
				/* 树形结构 */
				$("#leftTree").tree({
					/* 树形菜单 */
					"url" : "${rootPath}/json/tree.json",
					/* 单击事件 */
					"onClick" : function(node) {
						/*alert(node.attributes)*/
						var attr = node.attributes;
						if (attr != undefined) {
							/* 添加新的选项卡 */
							addTabs(window, node.text, attr.url);
						}
					}
				});
			})
		</script>
	</head>
	<body class="easyui-layout">
		<div data-options="region:'north'"  style="height: 50px">
			欢迎${sessionScope.admins.trueName }登陆,上次登陆时间:
			<fmt:formatDate value="${sessionScope.admins.lastLoginTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
		</div>
		<div data-options="region:'south',split:true"
			style="height: 50px">南</div>
		<div data-options="region:'west',split:true" 
			style="width: 200px;">
			<!-- 左侧导航 -->
			<!-- <ul class="easyui-tree" id="leftTree">
					<li><span>用户管理</span></li>
					<li><span>系统管理</span>
						<ul>
							<li>
								<span>管理员管理</span>
								<ul>
									<li><a href="#" url="list.html">管理员列表</a></li>
									<li><a href="#" url="insert.html">管理员添加</a></li>
								</ul>
							</li>
							<li>
								<span>角色管理</span>
								<ul>
									<li><a href="#">角色列表</a></li>
									<li><a href="#">角色添加</a></li>
								</ul>
							</li>
						</ul>
					</li>
				</ul> -->
			<ul class="easyui-tree" id="leftTree">
			</ul>
		</div>
		<!-- <div data-options="region:'east',split:true" 
			style="width: 100px;">东</div> -->
		<!-- 多选项卡 -->
		<div id="tabs"
			data-options="region:'center',split:true,iconCls:'icon-ok'"
			class="easyui-tabs">
			<div title="主页">主页</div>
			<!-- <div title="测试2" data-options="closable:true">
					测试2
				</div>
				<div title="测试3" data-options="closable:true">
					测试3
				</div> -->
		</div>
	</body>
</html>